update licence and documentation on all new files, plus add database schema changes