re factored schema manger and added CrateSQLAction implementation as
inner classes. re factored and simplified test cases