Database utility methods added.

Utility methods to fetch and set data added.