Initial db setup and migration