Fixed issues with mysql time columns