fixed bug in db.php.template