Get data from db.