Fixed safe database.php