first go at making new SQL managed view