updated database to work