Rdbms tests

PR with all the RDBMS changes (needs the PRs from mongo, core and rdbms modules to work)