Got the basic database init stuff working properly.