read only and objects

set the database connection to read only
created some objects (statement and resultset, containing the execute
query)