Added database retrieve methods for Code Igniter