fixing db bug again