Add license, db versioning, chat closer to working