fixed bug in last db migration script