Small changes to REST_api for getting all from DB