Move the db setup to a script.