database with name and type