edit for new database