adapt database schema to current version