aligning database.php with the new convention: adding namespace, removing final ?> and removing deprecated methods