Separate Database entities module into external repository