GH-28 Integrating the database accessing part