Fix for validating the rest api - also solves the looping initdb