Database statement structure change to PreparedStatement