searches a mysql database for a specific username