Added release of connection to database