added table entry sql counter