Added contacts paged and change from sqlite -> pqsql