Extensions and pullbacks of Banach algebras