Refactored REST API and Liquibase scripts