fix picture db migration