Update PicoDb and improve schema migration error handling