Basic test of api -> db working