Get the Logic agree with database apis