title: elgg database connection
body: <p>I just started working on a social network site using elgg framework.  I want to do a simple query to the mysql database to get data out of it. How is the best way to connect to the database to do some simple queries on it?
  Thanks </p>