Added flags to database, updated database version