Schema initialize & compilation fixes