fixed local database and production database issue, removed debug check in templates