add some missing statements in the sql upgrade script
Merge branch 'devel' of dev.sourcefabric.org:airtime into devel