Change location of database connection closing so multiple commands can be given in one session.
Change location of database connection closing so multiple commands can be given in one session.

CSCfi/antero,CSCfi/antero,CSCfi/antero,CSCfi/antero,CSCfi/antero,CSCfi/antero