Fixed tags behavior internal function
Added hit column in test database schema
Added test structure for tags behavior
Fixed issue with hits table method
Added tests for hits table method