added the API to retrieve info from db in php