initializeDb function

Create and initialize a database