Added database schema auto-upgrade in backend
Style fix for consistency
Small style fixes