API created reading data from database