removed api constant from dbase_layer.php and put into helpers.php