Fixed and added database functions

Fixed: accountExists
Fixed: insertAccount
Added: updatePassword(Not functioning)