WIP - insert query abstraction introduced. Ignored a few tests which shall be fixed ASAP. Integration tests work though