edit Database class