Frameworks: Fix SQLite problems

Change-Id: I4da2c13b8b78902b72a6bf4937a86ab8f63eade3