Added the DAL functions for the likes sorted takes query