Get User scripts of custom database is called twice in various scenarios