1st Set of updates for realm db
More updates and start of version checking
Added based SQL
Added some checking around the realm checks
Merge branch 'RealmD' of http://github.com/mangosvb/serverOne into RealmD