Added framework to load flat databases