took a stab at automatic database extension creation