implemented sqlite workaround
only extend unextended queries