updated migration basis to database from consensus