updated database

updated database
prototype
updated login
model-login
forgotpassword update
model user page

made function to get user from database, add user to database, and update user
functions and index