update Database class