updated mysql database and moved login from couch to mysql