TRUNK-4135 Modify DrugOrder.frequency and TRUNK-4052 Add a way to test liquibase changesets

Once I added a way to test liquibase upgrade I discovered many of new changesets had bugs, which I fixed as well. Please review, but do not merge yet, as I need to add some assertions in my test to be 100% sure everything worked as expected.