returning single object for /db when only one query was executed