Fixed bug with removing your only database connection