function to check and delete email table on db added