Implement cursor adapter to get data from data base.

Signed-off-by: PedroLourenco <pdrolourenco@gmail.com>