remove unused variable & duplicate schemadb loads