[PLAT-1415] Fix test now we have validating time-series
[PLAT-3409] Refactor handling of database scripts