Implemented database interaction through context menu.