Moved db stuff to db module
Updated file
Updated home page
Updated js files
Updated home page
Updated user file
Updated file