Initiate a new function for get records