get basic db queries actually working