Added new test to DataStoreContractTest.
Fixed bug in RDBMSDatabase when inserting two atoms of the same predicate.