Scripting

Added scripting for upgrading database. File edit still is necessary
though