Cadabia is a database agent based on Class Algebra [1]. In this thesis, we present an implementation of the query language for the Cadabia database system, which allows a user to securely get/set data from the databases or ontologies of users and groups.