Refactored database creation task and event hook for rocketeer deployment.
Added debug configuration for staging.