FAIMS-452 - add views to the sql