Refactored base create API and abstracted the pagination elements into its own query
Updates