dynamic page size from db