minor changes to make to compile when no sqlite is available.