Added code to get data from database.