Minor fixed on promoting and demoting db form heroku