Upated database creation script