add localdb and pagination class