Added pragma once in header files and started implementing database methods