Create new sqlite sample model/fix errors in sqlite

legacy tests still broken for sqlite