Updated database model
Merge commit '3fcc6606c3ec1aa7ebddb0fd8e34b14e0016fe3b'
Reformatted license note to not cause leading empty lines,
added check_session component