change the api code to fit the new database format.
dealing the confilct