Fix database migrate