Refactor LiveSql into application component