Created tool to automate db setup and upgrade