Added request_ride function in database.php

Created the request trip table, then added request_ride function in
database.php. Minor change in get_logged_in_user where I added a missing
right parenthesis.