Fixed issues regarding PreparedStatements in RDBMSDatabase.