fixed sql syntax for mysql
prettier dates on small screens