Database creation and population