Added login to flask and DB connection using MySQLdb