Added connection to external database