removed olddb from api.php