script for deploying db