public static Vector<Call> getCallRegister(Date sd, Date ed){
        Vector<Call> calls = new Vector<Call>();
        PreparedStatement preparedStatement = null;
        ResultSet resultSet = null;
        try {
            preparedStatement = Call.getConnection().prepareStatement(
                    Call.selectRegisterString,
                    ResultSet.TYPE_FORWARD_ONLY
            );
            preparedStatement.setTimestamp(1, new Timestamp(sd.getTime()));
            preparedStatement.setTimestamp(2, new Timestamp(ed.getTime()));
            resultSet = preparedStatement.executeQuery();
            while(resultSet.next()){
                Call c = new Call(resultSet.getInt("id"));
                calls.add(c);
            }
        } catch (SQLException e) {
            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
        } finally {
            try {
                if (preparedStatement != null) {
                    preparedStatement.close();
                }
                if (resultSet != null) {
                    resultSet.close();
                }
            } catch (SQLException ex) {
                ex.printStackTrace();
            }

        }
        return calls;
    }