Replace all database names with constants