Only select DATE from MySQL. Improve vector management in R.