Added pagination to dbsearch; removed pagination code from client side.