define get and post to/from db (still fake)