updated database schema