Automate database creation