setup database from entities