Fromat sql so that seconds are not returned in query, for may is now 2014-11-27 23:23:00