Using PreparedStatement. Removed pk list from DatabaseElement.