Database creation and reset