Added basic database stuff.