Changed debug to true for dev
Changed database for prod
Fixed database error
Redfining database