Adding entries table argument to construct
Updating how Postgres queries are built