Requests data from a postgres database