change projects to ccomile against X86 and refactor SQLiteRepository