update database schemas, ready for an upgrade