fixing db code
fixing db code