restructure application to be used with heroku, use rules from database (not hardcoded), use regex for all rules