change dao and database