Added some db stuff.