Update database schema slightly, and performed more bug fixes.