fixed problem with database extension