Database selection frame working fully - commented out for the moment