Added ability to load data from db.