splitting DB into separate repository