Rdbms changes

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