Updates the database and files of a staging server from git repo and set proper permissions