add atomic decorator on execute insert sql

and is_usable function to prevent NotImplementedError