Updated config file
Added sql helpers
Implemented db integration
Added form validation