Database creation and configuration