In the dynamic realm of modern data-driven technologies, software systems heavily rely on extensive datasets and continuous data center operations utilizing diverse database systems to support computationally intensive tasks. The management of vast amounts of data also introduces challenges related to energy efficiency. With the growing concern over energy consumption in software systems, the selection of a Green database system for its energy efficiency becomes crucial. While various software components have been scrutinized for their energy consumption, there exists a gap in the Software Engineering literature concerning the energy efficiency of databases. To address this gap, we propose the DBJoules framework, focusing on investigating the energy consumption of queries associated with popular databases such as MySQL, PostgreSQL, MongoDB, and Couchbase. Our evaluations, conducted on three widely-used datasets, reveal significant differences in the energy consumption of these databases. The objective is to enhance developer awareness regarding the impact of running queries in different databases from an energy consumption perspective, empowering them to make informed choices for sustainable usage.