Add a pre-loaded queue function to db