Configured database.
Added database querying; no updating yet.