fixed DB setup script