added all_tags method to save into the database