SQL adapter for lockit