DB Must be closed after every transaction