use a default value for itemsPerPage if not found in db