Fixed multiple db added bug