Added some database stuff. Let's see if it works.