Adding database type to the dynamically set key