getting tags from DB.