Added DB calls for user login, serialize and deserialize