execute db migration on server starup

fixing issue AGPUSH-1075