setting up the database creation

Databases are now created on first start-up but gives an error when
trying to use them.