Some more formatting fixes, move schema related functions from Ldb to Schema.