Prepare to switch db to postgres