Made sure that cursor and db was closed after select query.
changes in bin folder.