Implementing basic fetch data function for mysql dlm.