added Sql Repository and cleaned up unused views