fix bug change database