Restore prefixes after close database