configure db name as well
finish connection if not finished
dont close the connection
remove close as it appears unnecessary