adds function to api manager and fabfile to remove duplicates from the database