fixed reference to an undeclared variable (f, when it should have been schema) in init_db