helpers for db
basic GET api