Creating function for deploying db scripts and updating code for correct phpunit tests