embed database type in metadata