Added support for different database adaptors
Added mailers and email views
updated function naming