sidebar fixes + sql migration