improve client area layout
move sql to module file
move sql definition from module
move sql to module file
add email templates
add/edit text entries
- add email notifications
- improve code