Remove the database related code in ESR.