Added some basic database stuff.