added sql upgrade script and updated db creation script
scripts were not tested