Fixed DB error