First you need to decide what kind of tool it.
There are three kinds of tools
- just a class to execute queries. PDO almost 90% covers the tasks of this class.
Queries are written kinds
$user = $db->prepared_query("SELECT * FROM users WHERE id = ?", [$id])->fetch();
2. Query builder
- the query Builder.
$user = $db->select('*')->from('users')->where('id', $id);
queries are hidden inside, we only write stuff like $user = User::load($id);
Most flexible, of course, is the first.