Added the get tags from db functionality.