Move DB methods that are only used for test purposes from the datastore to the datastore_test package
This is a followup from !520 (comment 501602926). This change should reduce the datastore interfaces considerably, as well as avoid polluting the public API of the datastore
package.