Fixed up PostgresSQL issues with Paging