Minor fix with db statement