Added confirm module to send email

Added confirm module to send email
Fixed db->model name change

Fixed db->model name change
Writes uploaded files to storage dir based on config

Writes uploaded files to storage dir based on config