updated database setup