add database and encoding