Update db.php

Use the proper system path, rather than the dirname(__FILE__)
Merge pull request #1766 from JAY6390/patch-2

Update db.php