fix pagination on database browsing