modifies server initiation to happen post db connection