updating database scripts