Database setup and use external script