Synchronize PostgreSQL db structure upon connection