edited DBConnector

change to convert to null if date is 0000-00-00 instead of being
0001-01-01