In the field of Software Engineering, a recurring theme is that locating errors and trying to fix them in a software package. Several studies on software bugs have used some kind of bug database to assist their work. These databases usually come from publicly available sources, but some researchers have created their own databases. These kinds of studies are important because the more we know about software bugs, the easier it is to prevent or find and fix them. Software developers being human tend to make mistakes. These may arise due to such factors as a tight deadline, poor design, a change in the specification and lack of experience. This is the reason why it is necessary to support this kind of research with bug databases that represent the defects of real software systems well. Depending on the application of the database, it may contain additional information like bug-related test cases, static source code metrics, design patterns and process metrics. During our previous study we constructed a bug database from Java projects on GitHub. This database contains the faulty source code elements (files and classes) and their static source code metrics. In addition, we used a graph database to compute some process metrics of the buggy source code elements. In this study, we present our BugHunter tool and we improved it by using the graph database to also locate the buggy source code elements. This way, our tool is capable of locating the defective source code elements at the file and class levels, and now even at the method level. Our tool uses Neo4j-a popular open-source graph database engine-and its query language called cypher. The calculations are carried out by running a cypher query, and it makes our method quite flexible. To analyze the given project's source code, we used the free version of the SourceMeter tool. Also, we made our complete tool-chain publicly available as an open-source project on GitHub. This way, the complete system is freely available for studies on software bugs, especially those concerning bug prediction.