Database creation and connection