Add create-database.sh; update views for current schema; add check for reserved word "offset".