added init script and added db migrations to deploy script