update for database restructure
Merge remote-tracking branch 'origin/master'