better selection view and removed db connection for faster debugging