re-create server version of database.php