Fixed bug where database never existed.