reorganised views directory
switched to timestamped SQL views and functions