Add wait to postgresql to avoid race condition during start