MySQL integration in R scripts, as well as portfolio strategies entry points