To use this class, you have to make an object from it. so it automaticly connect to database and select DB.
You can also send query to database by using this:
require_once 'include/core/database.php;
$db = new db_engine();
$result = $db->query("SOME SQL QUERY");
We have an argument that call "$dieOnError". You can use it, if you want the class skip the mysql request error.