Finish database migration