readded erroneously deleted
remove is with == and better connection close to avoid uanble to open db