Added properties for main and test databases.
Refactor whole project to Maven multimodule project