add findOne method to DB.class.php