* fix bug where connection doesn't use the database at startup
* create database if needed at startup