def dbget_user_by_fbid(fbid): return db.get("SELECT * FROM users WHERE fbid=%s", fbid)
def dbget_user(uid): return db.get("SELECT * FROM users WHERE id=%s", uid)
def dbget_exercise_type(exercise_type_id): return db.get("SELECT * FROM exercise_types WHERE id=%s", exercise_type_id)
def dbget_measure(measure_id): return db.get("SELECT * FROM measures WHERE id=%s", measure_id)
def get_entry(entry_id): return translate(db.get("SELECT * FROM entries WHERE id=%s", entry_id))