Updated API, encompasses all requirements from SQL_Calls.php