Added one-to-manies support
Enabled to specify SQL formatter for logging