Caching soup table names and using lastinsertedrowid when registering a soup