fixed some sqlite3 threading issues
got rid of the global
endpoint_rex now part of endpoint
cosmetic fixes to sqlite3 delegate. also doc fixes