v1.1 programmatic database creation added, some code refactoring, factories are merged