updated db.php

included password_compat stuff to replace php 5.5 built-in functions.