Read data from db.