setting up db and installation script