get tags json from database