Implement database record pagination