Update db.php

Use the proper system path, rather than the dirname(__FILE__)